home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / flrsrcms.hqx / Resource Utilities doc / stack_-1.xml < prev    next >
Extensible Markup Language  |  1993-02-04  |  7KB  |  59 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>39</cardCount>
  7.     <cardID>4163</cardID>
  8.     <listID>2192</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>270</height>
  15.     </cardSize>
  16.     <script>---- Utility routines--On ResetScrollBars-- leaves all scroll bars nice and tidy.Unmark all cardsMark cards where the scroll of background field "Description" Γëá 0RepeatGo to next marked cardIf not the marked of this card thenExit repeatEnd IfSet scroll of background field "Description" to 0Unmark this cardEnd RepeatEnd ResetScrollBarsOn CopyDescription-- copies the contents of the ΓÇ£DescriptionΓÇ¥ field to-- the Clipboard. Works even if the field is locked.Select char 1 to (the length of background field "Description") ┬¼of background field "Description"DoMenu "Copy Text"Select emptyEnd CopyDescriptionOn UnlockFields-- unlocks all background fields.Repeat with i = 1 to the number of background fieldsIf not the SharedText of background field i thenSet LockText of background field i to falseEnd IfEnd RepeatEnd UnlockFieldsOn LockFields-- locks all background fields.Repeat with i = 1 to the number of background fieldsSet LockText of background field i to trueEnd RepeatIf the FreeSize of this stack Γëá 0 thenDoMenu "Compact Stack"End IfEnd LockFieldsOn StripTabs-- strips tab characters from all fields.If the LockText of background field "Name" thenAnswer "Unlock fields first."Exit StripTabsEnd IfRepeatFind string TabIf the result is not empty thenExit RepeatEnd IfPut space into the foundchunkEnd RepeatEnd StripTabsOn SortCards-- sorts cards by background field ΓÇ£NameΓÇ¥If the LockText of background field "Name" thenAnswer "Unlock fields first."Exit SortCardsEnd IfPush this cardSort this background by field "Name"Pop cardEnd SortCardsOn WhiteOutButton ButtonID-- paints a white rectangle matching the bounds of-- the specified background button. Make sure youΓÇÖre-- in background edit mode before invoking this routine.Choose select toolDrag from the left of background button id ButtonID, ┬¼the top of background button id ButtonID to ┬¼the right of background button id ButtonID, ┬¼the bottom of background button id ButtonIDDoMenu "Clear Picture"Choose rect toolDrag from the left of background button id ButtonID, ┬¼the top of background button id ButtonID to ┬¼the right of background button id ButtonID, ┬¼the bottom of background button id ButtonIDChoose browse toolEnd WhiteOutButtonOn DeleteAllCards-- gets rid of all cards in this background except one,-- and empties all fields in the remaining card.If the LockText of background field "Name" thenAnswer "Unlock fields first."Exit DeleteAllCardsEnd IfAnswer "Really delete all cards?" with "Do It" or "IΓÇÖm a Teapot"If it is not "Do It" thenExit DeleteAllCardsEnd IfGo to first card of this backgroundPut 0 into CardsDeletedRepeat with i = 1 to the number of cards in this background - 1Set cursor to busyDoMenu "Delete Card"Add 1 to CardsDeletedIf CardsDeleted = 100 thenDoMenu "Compact Stack"Put 0 into CardsDeletedEnd IfEnd RepeatRepeat with i = 1 to the number of background fieldsIf not the SharedText of background field i thenPut empty into background field iEnd IfEnd RepeatIf CardsDeleted Γëá 0 thenDoMenu "Compact Stack"End IfEnd DeleteAllCards</script>
  17.     <background id="2638" file="background_2638.xml" name="XDoc" />
  18.     <background id="10485" file="background_10485.xml" name="Data Types" />
  19.     <card id="4163" file="card_4163.xml" marked="false" name="" owner="2638" />
  20.     <card id="11084" file="card_11084.xml" marked="false" name="" owner="2638" />
  21.     <card id="8531" file="card_8531.xml" marked="false" name="" owner="2638" />
  22.     <card id="12751" file="card_12751.xml" marked="false" name="" owner="2638" />
  23.     <card id="2899" file="card_2899.xml" marked="false" name="" owner="2638" />
  24.     <card id="9638" file="card_9638.xml" marked="false" name="" owner="2638" />
  25.     <card id="8211" file="card_8211.xml" marked="false" name="" owner="2638" />
  26.     <card id="5172" file="card_5172.xml" marked="false" name="" owner="2638" />
  27.     <card id="10666" file="card_10666.xml" marked="false" name="" owner="2638" />
  28.     <card id="13093" file="card_13093.xml" marked="false" name="" owner="2638" />
  29.     <card id="6835" file="card_6835.xml" marked="false" name="" owner="2638" />
  30.     <card id="11896" file="card_11896.xml" marked="false" name="" owner="2638" />
  31.     <card id="8721" file="card_8721.xml" marked="false" name="" owner="2638" />
  32.     <card id="5588" file="card_5588.xml" marked="false" name="" owner="2638" />
  33.     <card id="12871" file="card_12871.xml" marked="false" name="" owner="2638" />
  34.     <card id="10205" file="card_10205.xml" marked="false" name="" owner="2638" />
  35.     <card id="12070" file="card_12070.xml" marked="false" name="" owner="2638" />
  36.     <card id="9754" file="card_9754.xml" marked="false" name="" owner="2638" />
  37.     <card id="4986" file="card_4986.xml" marked="false" name="" owner="2638" />
  38.     <card id="4090" file="card_4090.xml" marked="false" name="" owner="2638" />
  39.     <card id="6147" file="card_6147.xml" marked="false" name="" owner="2638" />
  40.     <card id="5649" file="card_5649.xml" marked="false" name="" owner="2638" />
  41.     <card id="9376" file="card_9376.xml" marked="false" name="" owner="2638" />
  42.     <card id="8178" file="card_8178.xml" marked="false" name="" owner="2638" />
  43.     <card id="7373" file="card_7373.xml" marked="false" name="" owner="2638" />
  44.     <card id="5905" file="card_5905.xml" marked="false" name="" owner="2638" />
  45.     <card id="7457" file="card_7457.xml" marked="false" name="" owner="2638" />
  46.     <card id="6499" file="card_6499.xml" marked="false" name="" owner="2638" />
  47.     <card id="11668" file="card_11668.xml" marked="false" name="" owner="2638" />
  48.     <card id="59556" file="card_59556.xml" marked="false" name="" owner="2638" />
  49.     <card id="9167" file="card_9167.xml" marked="false" name="" owner="2638" />
  50.     <card id="12313" file="card_12313.xml" marked="false" name="" owner="2638" />
  51.     <card id="7690" file="card_7690.xml" marked="false" name="" owner="2638" />
  52.     <card id="4361" file="card_4361.xml" marked="false" name="" owner="2638" />
  53.     <card id="13784" file="card_13784.xml" marked="false" name="" owner="2638" />
  54.     <card id="7062" file="card_7062.xml" marked="false" name="" owner="2638" />
  55.     <card id="13358" file="card_13358.xml" marked="false" name="" owner="2638" />
  56.     <card id="4806" file="card_4806.xml" marked="false" name="" owner="2638" />
  57.     <card id="11344" file="card_11344.xml" marked="false" name="" owner="10485" />
  58. </stack>
  59.